<template>
  <div class="page-wrapper">
    <div class="page-content">
      <div class="top">
        <slot name="top" />
      </div>

      <div class="center">
        <slot name="center" />
      </div>

      <div class="bottom">
        <div class="bottom-left">
          <slot name="bottomLeft" />
        </div>
        <div v-if="$slots.bottomRight" class="bottom-right">
          <slot name="bottomRight" />
        </div>
      </div>

      <div class="pagination">
        <slot v-if="$slots.pagination" name="pagination" />
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import Vue from 'vue'
export default Vue.extend({
  components: {},
  data() {
    return {}
  },
})
</script>
<style lang="scss" scoped>
.page-wrapper {
  @apply bg-page-bgc;

  .page-content {
    @apply w-[1140px] mx-auto;
  }

  .bottom {
    @apply flex justify-between mt-[20px] rounded-md;

    .bottom-left {
      @apply flex-1 rounded-md;
    }

    .bottom-right {
      @apply w-[310px] ml-[20px] rounded-md;
    }
  }
}
</style>
